package com.bjbz.common.threadlocal;


import com.bjbz.governance.business.postinfo.po.PostInfoPo;

/**
* @Description: 线程变量
* @author Orange
* @date 2017年8月23日
*
*/
public class ThreadlocalContext<T> extends BaseThreadlocalContext {
	//用户id
	private Integer userId;
	//用户角色ID-暂app使用
	private Integer userRoleId;
	//用户名称
	private String userName;
	//当前用户
	private T currentUser;
	//当前职位
	private PostInfoPo postInfoPo;
	//用户类型 10:APP   20:WEB
	private Integer userType;
    //排序规则 pc用户
    private String orderDm;
	//是否禁用  当token被踢掉时改为禁用
	private Integer ifForbidden = 0;
    //排序规则 app用户
    private String appOrderDm;
	//所属网格 app用户
	private String wgIds;

	public String getWgIds() {
		return wgIds;
	}

	public void setWgIds(String wgIds) {
		this.wgIds = wgIds;
	}

	public String getAppOrderDm() {
        return appOrderDm;
    }

    public void setAppOrderDm(String appOrderDm) {
        this.appOrderDm = appOrderDm;
    }

    public Integer getUserRoleId() {
		return userRoleId;
	}

	public void setUserRoleId(Integer userRoleId) {
		this.userRoleId = userRoleId;
	}

	public Integer getIfForbidden() {
		return ifForbidden;
	}

	public void setIfForbidden(Integer ifForbidden) {
		this.ifForbidden = ifForbidden;
	}

	public String getOrderDm() {
        return orderDm;
    }

    public void setOrderDm(String orderDm) {
        this.orderDm = orderDm;
    }

    public PostInfoPo getPostInfoPo() {
		return postInfoPo;
	}

	public void setPostInfoPo(PostInfoPo postInfoPo) {
		this.postInfoPo = postInfoPo;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public T getCurrentUser() {
		return currentUser;
	}

	public void setCurrentUser(T currentUser) {
		this.currentUser = currentUser;
	}
}
